package org.example.factory.simple;

/** 工厂模式
 * @author wangbin
 * @date 2024/4/17
 * @vesion 1.0
 */
public class SimpleFactory {

    public Pazz createPazz(String typeStr){
        Pazz pazz = null;
        if(typeStr.equals("greek")){
            pazz = new  GreekPazz();
        }else if(typeStr.equals("cheese")){
            pazz = new  CheecPazz();
        }

        return pazz;
    }
}
